package com.chiwen.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.chiwen.common.annotation.Excel;
import com.chiwen.common.core.domain.BaseEntity;

/**
 * 订单管理对象 sys_order
 * 
 * @author dipper
 * @date 2022-11-13
 */
public class SysOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单ID */
    private Integer orderId;

    /** 商户名 */
    @Excel(name = "商户名")
    private String merchName;

    /** 商户通道 */
    @Excel(name = "商户通道")
    private String merchWay;

    /** 支付通道 */
    @Excel(name = "支付通道")
    private String payWay;

    /** 商户订单号 */
    @Excel(name = "商户订单号")
    private String merchOrder;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date payTime;

    /** 下单金额 */
    @Excel(name = "下单金额")
    private Long orderMoney;

    /** 支付金额 */
    @Excel(name = "支付金额")
    private Long payMoney;

    /** 支付状态 */
    @Excel(name = "支付状态")
    private String orderStage;

    /** 用户ip */
    @Excel(name = "用户ip")
    private String userIp;

    /** 用户设备 */
    @Excel(name = "用户设备")
    private String userEqu;

    /** 回调状态 */
    @Excel(name = "回调状态")
    private String callbackStage;

    /** 回调路径 */
    @Excel(name = "回调路径")
    private String callbackUrl;

    /** 回调次数 */
    @Excel(name = "回调次数")
    private String callbackCount;

    /** 数据隔离 */
    @Excel(name = "数据隔离")
    private Long deptId;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private String logicDelect;

    public void setOrderId(Integer orderId) 
    {
        this.orderId = orderId;
    }

    public Integer getOrderId() 
    {
        return orderId;
    }
    public void setMerchName(String merchName) 
    {
        this.merchName = merchName;
    }

    public String getMerchName() 
    {
        return merchName;
    }
    public void setMerchWay(String merchWay) 
    {
        this.merchWay = merchWay;
    }

    public String getMerchWay() 
    {
        return merchWay;
    }
    public void setPayWay(String payWay) 
    {
        this.payWay = payWay;
    }

    public String getPayWay() 
    {
        return payWay;
    }
    public void setMerchOrder(String merchOrder) 
    {
        this.merchOrder = merchOrder;
    }

    public String getMerchOrder() 
    {
        return merchOrder;
    }
    public void setPayTime(Date payTime) 
    {
        this.payTime = payTime;
    }

    public Date getPayTime() 
    {
        return payTime;
    }
    public void setOrderMoney(Long orderMoney) 
    {
        this.orderMoney = orderMoney;
    }

    public Long getOrderMoney() 
    {
        return orderMoney;
    }
    public void setPayMoney(Long payMoney) 
    {
        this.payMoney = payMoney;
    }

    public Long getPayMoney() 
    {
        return payMoney;
    }
    public void setOrderStage(String orderStage) 
    {
        this.orderStage = orderStage;
    }

    public String getOrderStage() 
    {
        return orderStage;
    }
    public void setUserIp(String userIp) 
    {
        this.userIp = userIp;
    }

    public String getUserIp() 
    {
        return userIp;
    }
    public void setUserEqu(String userEqu) 
    {
        this.userEqu = userEqu;
    }

    public String getUserEqu() 
    {
        return userEqu;
    }
    public void setCallbackStage(String callbackStage) 
    {
        this.callbackStage = callbackStage;
    }

    public String getCallbackStage() 
    {
        return callbackStage;
    }
    public void setCallbackUrl(String callbackUrl) 
    {
        this.callbackUrl = callbackUrl;
    }

    public String getCallbackUrl() 
    {
        return callbackUrl;
    }
    public void setCallbackCount(String callbackCount) 
    {
        this.callbackCount = callbackCount;
    }

    public String getCallbackCount() 
    {
        return callbackCount;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setLogicDelect(String logicDelect) 
    {
        this.logicDelect = logicDelect;
    }

    public String getLogicDelect() 
    {
        return logicDelect;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("merchName", getMerchName())
            .append("merchWay", getMerchWay())
            .append("payWay", getPayWay())
            .append("merchOrder", getMerchOrder())
            .append("payTime", getPayTime())
            .append("orderMoney", getOrderMoney())
            .append("payMoney", getPayMoney())
            .append("orderStage", getOrderStage())
            .append("userIp", getUserIp())
            .append("userEqu", getUserEqu())
            .append("callbackStage", getCallbackStage())
            .append("callbackUrl", getCallbackUrl())
            .append("callbackCount", getCallbackCount())
            .append("deptId", getDeptId())
            .append("logicDelect", getLogicDelect())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
